package com.qf.bbapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * (TExchangeIntegral)实体类
 *
 * @author makejava
 * @since 2022-07-02 19:29:00
 */
@Data
@TableName("t_exchange_integral")
@NoArgsConstructor
public class TExchangeIntegral  {

    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Integer uid;
    /**
     * 兑换券的类型
     */
    private String type;
    /**
     * 兑换消费的积分
     */
    private Integer exchange;
    /**
     * 兑换时间
     */
    private Date ctime;

    public TExchangeIntegral(Integer uid, String type, Integer exchange) {
        this.uid = uid;
        this.type = type;
        this.exchange = exchange;
        this.ctime=new Date();
    }
}

